package com.hkp.demo.mapper;

import com.hkp.demo.entity.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hkp.demo.entity.vo.ProjectDetailsGroupVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * <p>
 * 质量专项表 Mapper 接口
 * </p>
 *
 * @author HuKangPing
 * @since 2023-02-22 14:20:35
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {

    /**
     * 获取所有专项数量
     *
     * @param day 当前时间
     * @return
     */
    Long getProjectNum(String day);

    /**
     * 查询专项当天的运行规则数
     * @param day
     * @return
     */
    List<ProjectDetailsGroupVO> getRuleAndCounts(String day);
}
